//
//  Calendar.m
//  SAT_NET
//
//  Created by lanou3g on 16/3/8.
//  Copyright © 2016年 郭丹. All rights reserved.
//

#import "Calendar.h"

@implementation Calendar

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews {
    self.backgroundColor = [UIColor grayColor];
    
    self.calendarMenuV = [[JTCalendarMenuView alloc] initWithFrame:CGRectMake(0, 60, kScreenW, 120)];
    [self addSubview:self.calendarMenuV];
    self.calendarMenuV.backgroundColor = [UIColor cyanColor];
    
    self.contentV = [[JTHorizontalCalendarView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.calendarMenuV.frame), kScreenW, 300)];
    [self addSubview:self.contentV];
    self.contentV.backgroundColor = [UIColor whiteColor];
}

@end
